package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;

/**
 * 微信登录DTO
 */
@Data
@Schema(description = "微信小程序登录DTO")
public class WechatLoginDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "微信授权码不能为空")
    @Schema(description = "微信授权码")
    private String code;

    @Schema(description = "用户昵称")
    private String nickName;

    @Schema(description = "用户头像URL")
    private String avatarUrl;

    @Schema(description = "用户性别（0:未知,1:男,2:女）")
    private Integer gender;

    @Schema(description = "用户所在国家")
    private String country;

    @Schema(description = "用户所在省份")
    private String province;

    @Schema(description = "用户所在城市")
    private String city;
}